
		**********************************************************
		** File: EBA pdest 31-45.do								**
		** Paper: Human Trafficking Indicators: A New Dataset	**
		** Author: Richard Frank								**
		** Date: July 11, 2021									**
		** Task: Running 3rd series of pdest EBA models			**
 		**********************************************************

				clear
				version 16.1
				set max_memory 32g, permanently
				set seed 1234
				set level 95 		
				cd "C:\Users\Administrator\Desktop\"
				use "HT EBA merged DV and IVs.dta"

  
***************
 ** 31. lp_muslim80 **
 ***************
		
		probit F.pdest /**/  lp_muslim80 /**/
		regsave using /**/ eba_pdest_31 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 	/*1-5 */	///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	/*6-10 */	///
		 europe execleft execright fdi food      				/*11-15 */	///
		 homicides infant KOFSoGI language legal_british    	/*16-20 */	///
		 legal_french legal_german legal_scan literacy      	/*21-24 */	///
		 lp_catho80 lp_protmg80 media mena migration   			/*25-29 */	///
		 mortality_under5 /**/  oecd peacekeepersfl peacekeepersl	/*30-34 */ ///
		 polity2 pop prevent prostitutionlaw protect 				/*35-39 */	///
		 pve refugees religion rle sasia 					/*40-44 */		///
		 ssa tourism trade unemployment urban 				/*45-49 */		///
		 vae visa wecon  english 						/*50-53 */			///
		 french german spanish portuguese landlocked 		/*54-58 */		///	
				, max(3) min(3)  kronecker  conditionals(!(20&21&23)  !(20&21&22))
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ lp_muslim80 /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_31 /**/, tstat pval ci autoid append detail(all) 	
						}							 					
																					***************
 ** 32. oecd **
 ***************
		
		probit F.pdest /**/  oecd /**/
		regsave using /**/ eba_pdest_32 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 /**/    peacekeepersfl peacekeepersl	///
		 polity2 pop prevent prostitutionlaw protect 				///
		 pve refugees religion rle sasia 						///
		 ssa tourism trade unemployment urban 					///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ oecd /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_32 /**/, tstat pval ci autoid append detail(all) 	
						}							 					
																																										
***************
 ** 33. peacekeepersfl **
 ***************
		
		probit F.pdest /**/ peacekeepersfl  /**/
		regsave using /**/ eba_pdest_33 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 oecd /**/     peacekeepersl				///
		 polity2 pop prevent prostitutionlaw protect 				///
		 pve refugees religion rle sasia 						///
		 ssa tourism trade unemployment urban 					///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ peacekeepersfl /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_33 /**/, tstat pval ci autoid append detail(all) 	
						}							 					
																																										
***************
 ** 34. peacekeepersl **
 ***************
		
		probit F.pdest /**/ peacekeepersl  /**/
		regsave using /**/ eba_pdest_34 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 oecd peacekeepersfl /**/     			///
		 polity2 pop prevent prostitutionlaw protect 				///
		 pve refugees religion rle sasia 						///
		 ssa tourism trade unemployment urban 					///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ peacekeepersl /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_34 /**/, tstat pval ci autoid append detail(all) 	
						}							 					
																																										
								
***************
 ** 35. polity2 **
 ***************
		
		probit F.pdest /**/ polity2  /**/
		regsave using /**/ eba_pdest_35 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 oecd peacekeepersfl peacekeepersl 	///
		 /**/  pop prevent prostitutionlaw protect 					///
		 pve refugees religion rle sasia 						///
		 ssa tourism trade unemployment urban 					///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ polity2 /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_35 /**/, tstat pval ci autoid append detail(all) 	
						}							 					
																																																								
								
***************
 ** 36. pop **
 ***************
		
		probit F.pdest /**/ pop  /**/
		regsave using /**/ eba_pdest_36 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 oecd peacekeepersfl peacekeepersl 	///
		 polity2 /**/   prevent prostitutionlaw protect 					///
		 pve refugees religion rle sasia 						///
		 ssa tourism trade unemployment urban 					///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ pop /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_36 /**/, tstat pval ci autoid append detail(all) 	
						}							 					
																																																								
***************
 ** 37. prevent **
 ***************
		
		probit F.pdest /**/  prevent /**/
		regsave using /**/ eba_pdest_37 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 oecd peacekeepersfl peacekeepersl 	///
		 polity2 pop /**/    prostitutionlaw protect 					///
		 pve refugees religion rle sasia 						///
		 ssa tourism trade unemployment urban 					///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ prevent /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_37 /**/, tstat pval ci autoid append detail(all) 	
						}							 					
																																																								
***************
 ** 38. prostitutionlaw **
 ***************
		
		probit F.pdest /**/ prostitutionlaw  /**/
		regsave using /**/ eba_pdest_38 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 oecd peacekeepersfl peacekeepersl 	///
		 polity2 pop prevent /**/     protect 					///
		 pve refugees religion rle sasia 						///
		 ssa tourism trade unemployment urban 					///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ prostitutionlaw /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_38 /**/, tstat pval ci autoid append detail(all) 	
						}		


***************
 ** 39. protect **
 ***************
		
		probit F.pdest /**/ protect  /**/
		regsave using /**/ eba_pdest_39 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 oecd peacekeepersfl peacekeepersl 	///
		 polity2 pop prevent prostitutionlaw /**/      				///
		 pve refugees religion rle sasia 						///
		 ssa tourism trade unemployment urban 					///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ protect /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_39 /**/, tstat pval ci autoid append detail(all) 	
						}		



***************
 ** 40. pve **
 ***************
		
		probit F.pdest /**/  pve /**/
		regsave using /**/ eba_pdest_40 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 oecd peacekeepersfl peacekeepersl 	///
		 polity2 pop prevent prostitutionlaw protect     			///
		 /**/   refugees religion rle sasia 						///
		 ssa tourism trade unemployment urban 					///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ pve /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_40 /**/, tstat pval ci autoid append detail(all) 	
						}		



***************
 ** 41. refugees **
 ***************
		
		probit F.pdest /**/ refugees  /**/
		regsave using /**/ eba_pdest_41 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 oecd peacekeepersfl peacekeepersl 	///
		 polity2 pop prevent prostitutionlaw protect     			///
		 pve /**/    religion rle sasia 							///
		 ssa tourism trade unemployment urban 					///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ refugees /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_41 /**/, tstat pval ci autoid append detail(all) 	
						}		

***************
 ** 42. religion **
 ***************
		
		probit F.pdest /**/  religion /**/
		regsave using /**/ eba_pdest_42 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 oecd peacekeepersfl peacekeepersl 	///
		 polity2 pop prevent prostitutionlaw protect     			///
		 pve refugees /**/     rle sasia 							///
		 ssa tourism trade unemployment urban 					///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ religion /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_42 /**/, tstat pval ci autoid append detail(all) 	
						}		

***************
 ** 43. rle **
 ***************
		
		probit F.pdest /**/ rle  /**/
		regsave using /**/ eba_pdest_43 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 oecd peacekeepersfl peacekeepersl 	///
		 polity2 pop prevent prostitutionlaw protect     			///
		 pve refugees religion /**/      sasia 					///
		 ssa tourism trade unemployment urban 					///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ rle /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_43 /**/, tstat pval ci autoid append detail(all) 	
						}		

**************
 ** 44. sasia **
 ***************
		
		probit F.pdest /**/ sasia  /**/
		regsave using /**/ eba_pdest_44 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 oecd peacekeepersfl peacekeepersl 	///
		 polity2 pop prevent prostitutionlaw protect     			///
		 pve refugees religion rle /**/       					///
		 ssa tourism trade unemployment urban 					///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ sasia /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_44 /**/, tstat pval ci autoid append detail(all) 	
						}		

**************
 ** 45. ssa **
 ***************
		
		probit F.pdest /**/ ssa  /**/
		regsave using /**/ eba_pdest_45 /**/, replace
		
		tuples 																///
		  agr america_l america_n conflict_ext conflict_int 		///
		 cpi easia_pacific energyuse ethnic_tension ethnic  	///
		 europe execleft execright fdi food      				///
		 homicides infant KOFSoGI language legal_british    	///
		 legal_french legal_german legal_scan literacy      	///
		 lp_catho80 lp_protmg80 media mena migration   			///
		 mortality_under5 lp_muslim80 oecd peacekeepersfl peacekeepersl 	///
		 polity2 pop prevent prostitutionlaw protect     			///
		 pve refugees religion rle sasia       					///
		 /**/   tourism trade unemployment urban 				///
		 vae visa wecon  english 							///
		 french german spanish portuguese landlocked 						///	
				, max(3) min(3)  kronecker
		
		forvalues i = 1/`ntuples'   {
		 probit F.pdest /**/ ssa /**/ `tuple`i'' gdppcl, robust cluster(ccode) 
		regsave using /**/ eba_pdest_45 /**/, tstat pval ci autoid append detail(all) 	
						}		







								
								
								
								
								
